package com.atguigu.meinian.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.atguigu.meinian.mapper.UserMapper;
import com.atguigu.meinian.pojo.User;
import com.atguigu.meinian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import sun.dc.pr.PRError;

/**
 * @author zbystart
 * @create 2021-06-25 19:24
 */
@Service(interfaceClass = UserService.class)
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryUserAndRoleByUserName(String userName) {
        return userMapper.selectUserAndRoleByUserName(userName);
    }
}
